package com.neusoft.elm.service;

import java.util.List;
import com.neusoft.elm.po.Cart;

public interface CartService {
    public int saveCart(Cart cart);
    public int updateCart(Cart cart);
    public int removeCart(Cart cart);
    public List<Cart> listCart(Cart cart);
    
    // 新增方法
    public int saveOrUpdateCart(Cart cart);
    public boolean syncCartToDevices(String userId);
    public List<Cart> getUnsyncedCarts(String userId);
    public boolean mergeCartFromDevices(String userId, String currentDeviceId);
    public int clearUserCart(String userId);
}